/* 基础变量定义 */
:root {
  --sidebar-width: 250px;
  --header-height: 60px;
  --content-padding: 20px;
  
  --primary-color: #3498db;
  --primary-light: #5dade2;
  --primary-dark: #2980b9;
  
  --success-color: #2ecc71;
  --success-light: #52be80;
  --success-dark: #27ae60;
  
  --warning-color: #f39c12;
  --warning-light: #f5b041;
  --warning-dark: #d68910;
  
  --danger-color: #e74c3c;
  --danger-light: #ec7063;
  --danger-dark: #c0392b;
  
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #95a5a6;
  
  --border-color: #e1e5eb;
  --bg-light: #f5f7fa;
  --bg-dark: #2c3e50;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  --font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  --border-radius: 4px;
}

/* 基础样式 */
body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 布局样式 */
.app-container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
}

.page-content {
  padding: var(--content-padding);
}

/* 侧边栏样式 */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--bg-dark);
  color: #fff;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: #243342;
}

.sidebar-logo {
  height: 40px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-left: 10px;
  color: white;
}

.sidebar-menu {
  padding: 15px 0;
}

.sidebar-menu-item {
  display: block;
  padding: 12px 20px;
  color: #b8c7ce;
  transition: all 0.3s;
  cursor: pointer;
}

.sidebar-menu-item.active,
.sidebar-menu-item:hover {
  background-color: #1a2530;
  color: white;
}

.sidebar-menu-item .icon {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* 顶部导航样式 */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.search-bar {
  width: 300px;
  margin-right: 20px;
  position: relative;
}

.search-bar .prefix-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  z-index: 2;
}

.search-bar .el-input__inner {
  padding-left: 35px;
  background-color: var(--bg-light);
}

.notification-item {
  position: relative;
  margin-left: 10px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
}

.user-profile {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

/* 数据概览卡片 */
.stat-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-right: 15px;
}

.stat-icon.primary {
  background-color: var(--primary-color);
}

.stat-icon.success {
  background-color: var(--success-color);
}

.stat-icon.warning {
  background-color: var(--warning-color);
}

.stat-icon.danger {
  background-color: var(--danger-color);
}

.stat-content {
  flex: 1;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 5px;
}

.stat-value {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-change {
  font-size: 12px;
  display: flex;
  align-items: center;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

/* 表格样式增强 */
.el-table {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* 分页器自定义 */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 自定义标签样式 */
.status-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-tag.primary {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.status-tag.success {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.status-tag.warning {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

.status-tag.danger {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

/* 进度条样式 */
.progress-container {
  height: 6px;
  background-color: var(--bg-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.progress-bar.primary {
  background-color: var(--primary-color);
}

.progress-bar.success {
  background-color: var(--success-color);
}

.progress-bar.warning {
  background-color: var(--warning-color);
}

.progress-bar.danger {
  background-color: var(--danger-color);
}

/* 表单样式优化 */
.form-section {
  margin-bottom: 30px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* 活动列表样式 */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: white;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-meta {
  display: flex;
  color: var(--text-light);
  font-size: 12px;
}

.activity-time {
  margin-right: 10px;
}

/* 任务列表样式 */
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.task-item:last-child {
  border-bottom: none;
}

.task-checkbox {
  margin-right: 10px;
  display: flex;
}

.task-content {
  flex: 1;
}

.task-title {
  font-weight: 500;
}

.task-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.task-actions {
  margin-left: 10px;
}

/* 图表容器 */
.chart-container {
  width: 100%;
  height: 300px;
} 